const Mock = require('mockjs')

let data  = {
    userInfo: {},
    userCollect: []
}

//用户信息
data.userInfo = Mock.mock({
    'code': 200,
    'data': {
        'name': '周某',
        'role': ['editor']
    }
})

//用户的收藏列表
var template = {
    'code': 200,
    'data|5': [{
        'id': '@guid()',
        'shopName': '@cname'
    }]
}
data.userCollect = Mock.mock(template)
















module.exports = data